﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{sdcms[webname]} - powered by sdcms</title>
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/public.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user_base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user_publish.css" rel="stylesheet" type="text/css" />
<link href="{webroot}lib/ueditor/themes/default/ueditor.css" rel="stylesheet" type="text/css" />
<script>var webroot="{webroot}";</script>
<script>window.UEDITOR_HOME_URL="{webroot}";</script>
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
<script src="{webroot}lib/js/mobile.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
<script>$(function(){$("#user_menu_08").addClass("hover");})</script>
{if sdcms.user_publish_num>0 or id<>0}
<script>
var editor_cid="{id}";
var editor_classid="1";
var editor_upload_root="{webroot}user/";
var editor_adminid="{userid}";
var editor_loginbase="{loginbase}";
</script>
<script src="{webroot}lib/ueditor/editor_user_config.js"></script>
<script src="{webroot}lib/ueditor/editor.js"></script>
<script>
$(function(){UE.getEditor('t14',editorOption_user_no);});
</script>
{/if}
</head>
<body>
    {sdcms:include("../../sdcms_head.asp")}
    
    <div id="position">您所在的位置：<a href="{webroot}">首页</a> > <a href="./">会员中心</a></div>
    <div class="w980 mt10 mc">
        {sdcms:include("../../user/sdcms_menu.asp")}
        <div class="right_big">
            <div class="b">
                <div class="subject">在线投稿</div>
                <div class="p12">
                
                        <div class="publishstep">
                            <ul>
                                <li class="step1"><span class="active"><span><span>1.选择栏目</span></span></span></li>
                                <li class="step2"><span class="active"><span><span>2.在线投稿</span></span></span></li>
                                <li class="step3"><span><span><span>3.投稿结果</span></span></span></li>
                            </ul>
                        </div>
                        <div class="publish">
                            {if sdcms.user_publish_num<0 and id=0}
                                您所在的用户组禁止投稿
                            {elseif sdcms.user_publish_num=0 and id=0}
                                您今日的投稿数量已用完
                            {else}
                            <form class="formname" method="post">
                            <ul>
                                <li><span class="text">当前栏目：</span>{catename}　<span class="c9"><a href="publish.asp?act=add">重选</a></span></li>
                                <li><span class="text"><span class="star">*</span>软件名称：</span>
                                    <input type="text" name="t0" size="50" maxlength="255" class="ip" value="{title}" data-rule="软件名称:required;" /></li>
                                <li><span class="text"><span class="star">*</span>软件版本：</span>
                                    <input type="text" name="t1" size="50" maxlength="255" class="ip" value="{versions}" data-rule="软件版本:required;" /></li>
                                <li><span class="text">软件语言：</span>
               <input type="radio" name="t2" id="t2_1" value="简体中文" {if language="简体中文"}checked{/if} style="border:0;"><label for="t2_1">简体</label>
               <input type="radio" name="t2" id="t2_2" value="繁体中文" {if language="繁体中文"}checked{/if} style="border:0;"><label for="t2_2">繁体</label>
               <input type="radio" name="t2" id="t2_3" value="英文" {if language="英文"}checked{/if} style="border:0;"><label for="t2_3">英文</label>
               <input type="radio" name="t2" id="t2_4" value="多国语言" {if language="多国语言"}checked{/if} style="border:0;"><label for="t2_4">多语</label></li>
                                <li><span class="text">软件授权：</span>
               <input type="radio" name="t3" id="t3_1" value="共享版" {if license="共享版"}checked{/if} style="border:0;"><label for="t3_1">共享版</label>
               <input type="radio" name="t3" id="t3_2" value="免费版" {if license="免费版"}checked{/if} style="border:0;"><label for="t3_2">免费版</label>
               <input type="radio" name="t3" id="t3_3" value="商业版" {if license="商业版"}checked{/if} style="border:0;"><label for="t3_3">商业版</label>
               <input type="radio" name="t3" id="t3_4" value="试用版" {if license="试用版"}checked{/if} style="border:0;"><label for="t3_4">试用版</label>
               <input type="radio" name="t3" id="t3_5" value="开源软件" {if license="开源软件"}checked{/if} style="border:0;"><label for="t3_5">开源版</label>
               <input type="radio" name="t3" id="t3_6" value="特别版" {if license="特别版"}checked{/if} style="border:0;"><label for="t3_6">特别版</label></li>
                                <li><span class="text">软件属性：</span>
               <input type="radio" name="t4" id="t4_1" value="国产软件" {if propertys="国产软件"}checked{/if} style="border:0;"><label for="t4_1">国产软件</label>
               <input type="radio" name="t4" id="t4_2" value="国外软件" {if propertys="国外软件"}checked{/if} style="border:0;"><label for="t4_2">国外软件</label>
               <input type="radio" name="t4" id="t4_3" value="汉化软件" {if propertys="汉化软件"}checked{/if} style="border:0;"><label for="t4_3">汉化软件</label>
               <input type="radio" name="t4" id="t4_4" value="汉化补丁" {if propertys="汉化补丁"}checked{/if} style="border:0;"><label for="t4_4">汉化补丁</label>
               <input type="radio" name="t4" id="t4_5" value="破解补丁" {if propertys="破解补丁"}checked{/if} style="border:0;"><label for="t4_5">破解补丁</label></li>
                                <li><span class="text"><span class="star">*</span>软件大小：</span>
                                    <input type="text" name="t5" size="10" maxlength="50" class="ip" value="{softsize}" data-rule="软件大小:required;" />
               <input type="radio" name="t6" id="t6_1" value="KB" {if sizeunit="KB"}checked{/if} style="border:0;"><label for="t6_1">KB</label>
               <input type="radio" name="t6" id="t6_2" value="MB" {if sizeunit="MB"}checked{/if} style="border:0;"><label for="t6_2">MB</label>
               <input type="radio" name="t6" id="t6_3" value="GB" {if sizeunit="GB"}checked{/if} style="border:0;"><label for="t6_3">GB</label></li>
                               <li><span class="text">操作系统：</span>
               <input type="checkbox" name="t7" id="t7_1" value="Win9X" {if instr(os,"Win9X")>0}checked{/if} style="border:0;"><label for="t7_1">Win9X</label>
               <input type="checkbox" name="t7" id="t7_2" value="2000" {if instr(os,"2000")>0}checked{/if} style="border:0;"><label for="t7_2">2000</label>
               <input type="checkbox" name="t7" id="t7_3" value="XP" {if instr(os,"XP")>0}checked{/if} style="border:0;"><label for="t7_3">XP</label>
               <input type="checkbox" name="t7" id="t7_4" value="2003" {if instr(os,"2003")>0}checked{/if} style="border:0;"><label for="t7_4">2003</label>
               <input type="checkbox" name="t7" id="t7_5" value="Vista" {if instr(os,"Vista")>0}checked{/if} style="border:0;"><label for="t7_5">Vista</label>
               <input type="checkbox" name="t7" id="t7_6" value="Win7" {if instr(os,"Win7")>0}checked{/if} style="border:0;"><label for="t7_6">Win7</label>
               <input type="checkbox" name="t7" id="t7_7" value="Unix" {if instr(os,"Unix")>0}checked{/if} style="border:0;"><label for="t7_7">Unix</label>
               <input type="checkbox" name="t7" id="t7_8" value="Linux" {if instr(os,"Linux")>0}checked{/if} style="border:0;"><label for="t7_8">Linux</label></li>
                               <li><span class="text">编程语言：</span>
                               <input type="checkbox" name="t8" id="t8_1" value="Asp" {if instr(devlanguage,"Asp")>0}checked{/if} style="border:0;"><label for="t8_1">Asp</label>
               <input type="checkbox" name="t8" id="t8_2" value="Php" {if instr(devlanguage,"Php")>0}checked{/if} style="border:0;"><label for="t8_2">Php</label>
               <input type="checkbox" name="t8" id="t8_3" value="Jsp" {if instr(devlanguage,"Jsp")>0}checked{/if} style="border:0;"><label for="t8_3">Jsp</label>
               <input type="checkbox" name="t8" id="t8_4" value=".Net" {if instr(devlanguage,".Net")>0}checked{/if} style="border:0;"><label for="t8_4">.Net</label>
               <input type="checkbox" name="t8" id="t8_5" value="Cgi" {if instr(devlanguage,"Cgi")>0}checked{/if} style="border:0;"><label for="t8_5">Cgi</label></li>
                               <li><span class="text">数据库类型：</span>
                               <input type="checkbox" name="t9" id="t9_1" value="Access" {if instr(database,"Access")>0}checked{/if} style="border:0;"><label for="t9_1">Access</label>
               <input type="checkbox" name="t9" id="t9_2" value="Mssql" {if instr(database,"Mssql")>0}checked{/if} style="border:0;"><label for="t9_2">Mssql</label>
               <input type="checkbox" name="t9" id="t9_3" value="Mysql" {if instr(database,"Mysql")>0}checked{/if} style="border:0;"><label for="t9_3">Mysql</label>
               <input type="checkbox" name="t9" id="t9_4" value="Zend" {if instr(database,"Zend")>0}checked{/if} style="border:0;"><label for="t9_4">Zend</label>
               <input type="checkbox" name="t9" id="t9_5" value="SQLite" {if instr(database,"SQLite")>0}checked{/if} style="border:0;"><label for="t9_5">SQLite</label>
               <input type="checkbox" name="t9" id="t9_6" value="Oracle" {if instr(database,"Oracle")>0}checked{/if} style="border:0;"><label for="t9_6">Oracle</label></li>
                               <li><span class="text">软件作者(开发商)：</span>
                               <input type="text" name="t10" size="50" maxlength="255" class="ip" value="{developers}" /></li>
                               <li><span class="text">作者(开发商)URL：</span>
                               <input type="text" name="t11" size="50" maxlength="255" class="ip" value="{developerurl}" /></li>
                               <li><span class="text">软件演示URL：</span>
                               <input type="text" name="t12" size="50" maxlength="255" class="ip" value="{demourl}" /></li>
                               <li><span class="text">软件缩略图片URL：</span>
                               <input type="text" name="t13" size="50" maxlength="255" class="ip" value="{pic}" /></li>
                               <li><span class="text"><span class="star">*</span>软件简介：</span>
                                    <div style="float:left"><textarea name="t14" id="t14" style="width:590px;" >{content}</textarea></div></li>
                                <li><span class="text"><span class="star">*</span>软件下载地址：</span>
                               <input type="text" name="t15" size="50" maxlength="255" class="ip" value="{downurl}" data-rule="软件下载地址:required;" /></li>
                                <li><span class="text"><span class="star">*</span>验证码：</span><input type="text" name="t16" size="6" maxlength="4" class="ip" data-rule="验证码:required;" /> <img src="{webroot}lib/imgcode.asp?t0=80&t1=20" title="看不清楚？点击刷新！" align="absmiddle" id="imgcode" onClick="this.src+='&'+Math.random();" /><span for="t16" class="msg-box"></span></li>
                                <li><span class="text"></span><input type="submit" value="提交" class="bnt_blue" name="bnt" /> <input type="button" value="返回" class="bnt_blue" onclick="location.href='javascript:history.go(-1)'" /></li>
                            </ul>
                            </form>
                            {/if}
                        </div>
                        <div class="c"></div>
                </div>
            </div>
        </div>
    </div>
    <script>
	$(".formname").validator(
		{
			stopOnError:true,
			theme:'yellow_right',
			ignore:':hidden',
			beforeSubmit:function(){$("input[type='submit']").attr("disabled",true);},
			valid:function(form)
			{
				$("#t14").val(UE.getEditor('t14').getContent());
				$.fn.tips({type:'loading',content:'数据提交中'});
				$.ajax(
				{
					url:"?act=db&classid={classid}&id={id}",
					type:"post",
					data:$(form).serialize(),
					success:function(data){
						data=jQuery.parseJSON(data);
						var type="warn";
						if(data.status=="y"){type="ok";}
						$.fn.tips({type:type,content:data.info});
						if(data.status=="y"){setTimeout('location.href="publish.asp"',1000);}
						else
						{$("input[type='submit']").attr("disabled",false);}
						
					}
				});
			},
			invalid:function(){$("input[type='submit']").attr("disabled",false);}
		}
	);
	</script>
    {sdcms:include("../../sdcms_foot.asp")}